from constants import *
from elements import TilePart, Tile, Feature, Follower, Board

class Game:
    '''
    inputs: 
        None
    defs:
        resetVariables
    '''
    def __init__(self, startingPlayer, rules):
        # constructor
        # returns: None
        self.turn = startingPlayer
        self.rules = rules
        self.tilePile = []
        tileList = []
        for rule in self.rules:
            tileList = tileList + rule
        for num in tileList:
            tile =  eval('TILE_' + str(num))
            for i in range(0, tile[0]):
                self.tilePile.append(Tile(tile[1], tile[2]))